<template>
  <!-- 任务 -->
  <div class="task-box">
    <el-tabs v-model="activeName">
        <el-tab-pane label="今日任务" name="1">
            <today v-if="activeName=='1'"></today>
        </el-tab-pane>
        <el-tab-pane label="本周任务" name="2">
            <weekTask v-if="activeName=='2'"></weekTask>
        </el-tab-pane>
    </el-tabs>
  </div>
</template>

<script>
import today from "./today/index.vue"
import weekTask from "./weekTask/index.vue"
export default {
    name:'task',
    components:{
        today,
        weekTask
    },
    data(){
        return{
            activeName: '1',
        }
    },
    methods:{}
}
</script>

<style lang="scss" scoped>
.task-box{
    height: 100%;
    .el-tabs{
        height: 100%;
        ::v-deep .el-tabs__header{
            margin: 0 30px 15px 30px;
        }
        ::v-deep .el-tabs__content{
            height: calc(100% - 55px);
            .el-tab-pane{
                height: 100%;
            }
        }
    }
}
</style>